#pragma once

#include <iostream>

enum Exitcode
{
    OK = 0,
    SOCKET_ERR, 
    BIND_ERR,
    LISTEN_ERR,
    FORK_ERR,
    ACCEPT_ERR
};

class NoCopy
{
public:
    NoCopy(){}
    NoCopy(const NoCopy&) = delete;
    const NoCopy& operator=(const NoCopy&) = delete; 
};

#define CONV(arr) ((struct sockaddr*)&arr)
